{include file="header.tpl"}
		
		<div id="content">
			<div id="job-listings">
				{if $jobs}
				<!--
				<div id="sort-by-type">
				{$translations.category.display_only}&nbsp; 
					<a href="{$BASE_URL}realestates/{$current_category}/full-time/" title="{$current_category} full time"><img src="{$BASE_URL}img/icon-fulltime.png" alt="{$current_category} full time" /></a>
					<a href="{$BASE_URL}realestates/{$current_category}/part-time/" title="{$current_category} part time"><img src="{$BASE_URL}img/icon-parttime.png" alt="{$current_category} part time" /></a>
					<a href="{$BASE_URL}realestates/{$current_category}/freelance/" title="{$current_category} freelance"><img src="{$BASE_URL}img/icon-freelance.png" alt="{$current_category} freelance" /></a>
				</div>
				
				-->
				<!-- #sort-by-type -->
				<!--
				<div class="mapAusSmall">
							
								<span class="mapAusSmallWa"><a href="{$BASE_URL}realestates/{$current_category}/WA/" title="rent western australia real estate"><span>rent western australia real estate <br></span></a></span>
								<span class="mapAusSmallNt"><a href="{$BASE_URL}realestates/{$current_category}/NT/" title="rent northern territory real estate"><span>rent northern territory real estate <br></span></a></span>
								<span class="mapAusSmallQu"><a href="{$BASE_URL}realestates/{$current_category}/QLD/" title="rent queensland real estate"><span>rent queensland real estate <br></span></a></span>
								<span class="mapAusSmallSa"><a href="{$BASE_URL}realestates/{$current_category}/SA/" title="rent south australia real estate"><span>rent south australia real estate <br></span></a></span>
								<span class="mapAusSmallNsw"><a href="{$BASE_URL}realestates/{$current_category}/NSW/" title="rent nsw real estate"><span>rent nsw real estate <br></span></a></span>
								<span class="mapAusSmallVic"><a href="{$BASE_URL}realestates/{$current_category}/VIC/" title="rent victoria real estate"><span>rent victoria real estate <br></span></a></span>
								<span class="mapAusSmallAct"><a href="{$BASE_URL}realestates/{$current_category}/ACT/" title="rent act real estate"><span>rent act real estate <br></span></a></span>
								<span class="mapAusSmallTas"><a href="{$BASE_URL}realestates/{$current_category}/TAS/" title="rent tasmania real estate"><span>rent tasmania real estate <br></span></a></span>
							
						</div>
						-->
						
						<table align="right" class="browsebymap">
<tr><td>
<h2>{$translations.search.browswbystate}</h2>				
</td></tr>
<tr><td>
						<div class="mapAusSmall">
							
								<span class="mapAusSmallWa"><a href="{$BASE_URL}stateselect/{$current_category}/WA/" title="rent western australia real estate"><span>rent western australia real estate <br></span></a></span>
								<span class="mapAusSmallNt"><a href="{$BASE_URL}stateselect/{$current_category}/NT/" title="rent northern territory real estate"><span>rent northern territory real estate <br></span></a></span>
								<span class="mapAusSmallQu"><a href="{$BASE_URL}stateselect/{$current_category}/QLD/" title="rent queensland real estate"><span>rent queensland real estate <br></span></a></span>
								<span class="mapAusSmallSa"><a href="{$BASE_URL}stateselect/{$current_category}/SA/" title="rent south australia real estate"><span>rent south australia real estate <br></span></a></span>
								<span class="mapAusSmallNsw"><a href="{$BASE_URL}stateselect/{$current_category}/NSW/" title="rent nsw real estate"><span>rent nsw real estate <br></span></a></span>
								<span class="mapAusSmallVic"><a href="{$BASE_URL}stateselect/{$current_category}/VIC/" title="rent victoria real estate"><span>rent victoria real estate <br></span></a></span>
								<span class="mapAusSmallAct"><a href="{$BASE_URL}stateselect/{$current_category}/ACT/" title="rent act real estate"><span>rent act real estate <br></span></a></span>
								<span class="mapAusSmallTas"><a href="{$BASE_URL}stateselect/{$current_category}/TAS/" title="rent tasmania real estate"><span>rent tasmania real estate <br></span></a></span>
							
						</div>
	</td></tr>
</table>				
				
				
				{/if}
				<h2>
					<!--{$translations.category.jobs_for} {$current_category}-->
					
<br><br>
					
					{if $jobs}
		<div class="searchTo">			
<form name="aspnetForm" method="post" action="{$BASE_URL}search/" onsubmit="javascript:return WebForm_OnSubmit();" onkeypress="javascript:return WebForm_FireDefaultButton(event, 'ctl00_SearchMoreCriteria1_Search')" id="aspnetForm" style="margin:0px">
  <label id="labSearchToBuy" for="searchToBuy">{$translations.search.searchlabel}</label>
<input name="key" maxlength="255" id="ctl00_SearchMoreCriteria1_searchToBuy" tabindex="1" class="tinput" onkeyup="KeyDownHandler()" type="text">
<span id="ctl00_SearchMoreCriteria1_searchToBuyValidator" style="color: Red; display: none;">Please enter your search criteria</span>


<div id="HomepageMoreCriteria">
	<div id="refineOptions" class="refineOptions" style="display: block;">
	  <table bgcolor="F6F7F9" id="searchtable">
        <tr>
          <td><select name="minprice" id="ctl00_SearchMoreCriteria1_ddlMinPrice" class="sInput">
		  <option value="">Min. Price</option>
		  {if $current_category=='buy'}
              
              <option value="25000">   25,000                          </option>
<option value="50000">   50,000                          </option>
<option value="75000">   75,000                          </option>
<option value="100000">  100,000                          </option>
<option value="150000">  150,000                          </option>
<option value="200000">  200,000                          </option>
<option value="250000">  250,000                          </option>
<option value="300000">  300,000                          </option>
<option value="350000">  350,000                          </option>
<option value="400000">  400,000                          </option>
<option value="450000">  450,000                          </option>
<option value="500000">  500,000                          </option>
<option value="600000">  600,000                          </option>
<option value="700000">  700,000                          </option>
<option value="800000">  800,000                          </option>
<option value="900000">  900,000                          </option>
<option value="1000000"> 1,000,000                         </option>
<option value="1250000"> 1,250,000                         </option>
<option value="1500000"> 1,500,000                         </option>
<option value="1750000"> 1,750,000                         </option>
<option value="2000000"> 2,000,000                         </option>
<option value="2500000"> 2,500,000                         </option>
<option value="3000000"> 3,000,000                         </option>
<option value="4000000"> 4,000,000                         </option>
<option value="5000000"> 5,000,000                         </option>
<option value="10000000">10,000,000                         </option>
{elseif $current_category=='rent' || $current_category=='share'}
<option value="50">    50                        </option>
<option value="100">   100                        </option>
<option value="150">   150                        </option>
<option value="200">   200                        </option>
<option value="250">   250                        </option>
<option value="300">   300                        </option>
<option value="350">   350                        </option>
<option value="400">   400                        </option>
<option value="450">   450                        </option>
<option value="500">   500                        </option>
<option value="550">   550                        </option>
<option value="600">   600                        </option>
<option value="650">   650                        </option>
<option value="700">   700                        </option>
<option value="750">   750                        </option>
<option value="800">   800                        </option>
<option value="850">   850                        </option>
<option value="900">   900                        </option>
<option value="950">   950                        </option>
<option value="1000">  1,000                       </option>                  
<option value="1500">  1,500                       </option>                  
<option value="2000">  2,000                       </option>                  
<option value="2500">  2,500                       </option>                  
<option value="3000">  3,000                       </option>                  
<option value="3500">  3,500                       </option>                  
<option value="4000">  4,000                       </option>                  
<option value="4500">  4,500                       </option>                  
<option value="5000">  5,000                       </option>  
{else if $current_category=='commercialProperty'}
<option value="25000">   25,000                          </option>
<option value="50000">   50,000                          </option>
<option value="75000">   75,000                          </option>
<option value="100000">  100,000                          </option>
<option value="150000">  150,000                          </option>
<option value="200000">  200,000                          </option>
<option value="250000">  250,000                          </option>
<option value="300000">  300,000                          </option>
<option value="350000">  350,000                          </option>
<option value="400000">  400,000                          </option>
<option value="450000">  450,000                          </option>
<option value="500000">  500,000                          </option>
<option value="600000">  600,000                          </option>
<option value="700000">  700,000                          </option>
<option value="800000">  800,000                          </option>
<option value="900000">  900,000                          </option>
<option value="1000000"> 1,000,000                         </option>
<option value="1250000"> 1,250,000                         </option>
<option value="1500000"> 1,500,000                         </option>
<option value="1750000"> 1,750,000                         </option>
<option value="2000000"> 2,000,000                         </option>
<option value="2500000"> 2,500,000                         </option>
<option value="3000000"> 3,000,000                         </option>
<option value="4000000"> 4,000,000                         </option>
<option value="5000000"> 5,000,000                         </option>
<option value="10000000">10,000,000                         </option>


{/if}
          </select></td>
          <td><select name="maxprice" id="ctl00_SearchMoreCriteria1_ddlMaxPrice" class="sInput">
              <option value="">Max. Price</option>
              {if $current_category=='buy'}
              
              <option value="25000">   25,000                          </option>
<option value="50000">   50,000                          </option>
<option value="75000">   75,000                          </option>
<option value="100000">  100,000                          </option>
<option value="150000">  150,000                          </option>
<option value="200000">  200,000                          </option>
<option value="250000">  250,000                          </option>
<option value="300000">  300,000                          </option>
<option value="350000">  350,000                          </option>
<option value="400000">  400,000                          </option>
<option value="450000">  450,000                          </option>
<option value="500000">  500,000                          </option>
<option value="600000">  600,000                          </option>
<option value="700000">  700,000                          </option>
<option value="800000">  800,000                          </option>
<option value="900000">  900,000                          </option>
<option value="1000000"> 1,000,000                         </option>
<option value="1250000"> 1,250,000                         </option>
<option value="1500000"> 1,500,000                         </option>
<option value="1750000"> 1,750,000                         </option>
<option value="2000000"> 2,000,000                         </option>
<option value="2500000"> 2,500,000                         </option>
<option value="3000000"> 3,000,000                         </option>
<option value="4000000"> 4,000,000                         </option>
<option value="5000000"> 5,000,000                         </option>
<option value="10000000">10,000,000                         </option>
<option value="10000000">10,000,000+                         </option>
{elseif $current_category=='rent' || $current_category=='share'}
<option value="50">    50                        </option>
<option value="100">   100                        </option>
<option value="150">   150                        </option>
<option value="200">   200                        </option>
<option value="250">   250                        </option>
<option value="300">   300                        </option>
<option value="350">   350                        </option>
<option value="400">   400                        </option>
<option value="450">   450                        </option>
<option value="500">   500                        </option>
<option value="550">   550                        </option>
<option value="600">   600                        </option>
<option value="650">   650                        </option>
<option value="700">   700                        </option>
<option value="750">   750                        </option>
<option value="800">   800                        </option>
<option value="850">   850                        </option>
<option value="900">   900                        </option>
<option value="950">   950                        </option>
<option value="1000">  1,000                       </option>                  
<option value="1500">  1,500                       </option>                  
<option value="2000">  2,000                       </option>                  
<option value="2500">  2,500                       </option>                  
<option value="3000">  3,000                       </option>                  
<option value="3500">  3,500                       </option>                  
<option value="4000">  4,000                       </option>                  
<option value="4500">  4,500                       </option>                  
<option value="5000">  5,000                       </option>  
<option value="5000">  5,000+                       </option>  
{else if $current_category=='commercialProperty'}
<option value="25000">   25,000                          </option>
<option value="50000">   50,000                          </option>
<option value="75000">   75,000                          </option>
<option value="100000">  100,000                          </option>
<option value="150000">  150,000                          </option>
<option value="200000">  200,000                          </option>
<option value="250000">  250,000                          </option>
<option value="300000">  300,000                          </option>
<option value="350000">  350,000                          </option>
<option value="400000">  400,000                          </option>
<option value="450000">  450,000                          </option>
<option value="500000">  500,000                          </option>
<option value="600000">  600,000                          </option>
<option value="700000">  700,000                          </option>
<option value="800000">  800,000                          </option>
<option value="900000">  900,000                          </option>
<option value="1000000"> 1,000,000                         </option>
<option value="1250000"> 1,250,000                         </option>
<option value="1500000"> 1,500,000                         </option>
<option value="1750000"> 1,750,000                         </option>
<option value="2000000"> 2,000,000                         </option>
<option value="2500000"> 2,500,000                         </option>
<option value="3000000"> 3,000,000                         </option>
<option value="4000000"> 4,000,000                         </option>
<option value="5000000"> 5,000,000                         </option>
<option value="10000000">10,000,000                         </option>
<option value="10000000">10,000,000+                         </option>

{/if}
          </select></td>
        </tr>
        <tr>
          <td align="right" id="AAA">{$translations.property.bedrooms}</td>
          <td><select name="bedrooms" id="ctl00_SearchMoreCriteria1_ddlBedrooms" class="sInput">
              <option value="">Any</option>
              <option value="1">1</option>
              <option value="2">2</option>
              <option value="3">3</option>
              <option value="4">4</option>
              <option value="5">5</option>
          </select></td>
        </tr>
        <tr>
          <td align="right" id="AAA"><label class="numBath" for="bathroom">{$translations.property.bathrooms}</label></td>
          <td><select name="bathrooms" id="ctl00_SearchMoreCriteria1_ddlBathrooms" class="sInput">
              <option value="">Any</option>
              <option value="1">1</option>
              <option value="2">2</option>
              <option value="3">3</option>
              <option value="4">4</option>
              <option value="5">5</option>
          </select></td>
        </tr>
        <tr>
          <td align="right" id="AAA"><label class="numCars" for="carspace">{$translations.property.carspaces}</label></td>
          <td><select name="carspaces" id="ctl00_SearchMoreCriteria1_ddlCarSpaces" class="sInput">
              <option value="">Any</option>
              <option value="1">1</option>
              <option value="2">2</option>
              <option value="3">3</option>
              <option value="4">4</option>
              <option value="5">5</option>
          </select></td>
        </tr>
        <tr>
          <td align="right" id="AAA">{$translations.property.propertytype}</td>
          <td> <select name="propertytype" id="ctl00_SearchMoreCriteria1_ddlPropType" class="sInput">
              <option value="">Property Type</option>
			  
			  {section name=tmp1 loop=$property_array}
									<option value="{$property_array[tmp1].id}" {if $default_categ_id != '' && $default_categ_id == $property_array[tmp1].id}selected="selected"{else}{if $property_array[tmp1].id == $job.propertytype}selected="selected"{/if}{if $property_array[tmp1].id == $smarty.post.category_id}selected="selected"{/if}{/if}>{$property_array[tmp1].name}</option>
									{/section}
			  
          </select></td>
        </tr>
        <tr>
          <td id="AAA"></td>
          <td></td>
        </tr>
      </table>
	  <input name="type"  value="{$id}" type="hidden">
	</div> 
</div> <!-- //HomepageMoreCriteria -->
<input type="submit" name="Submit" value="Search" />
<!-- <div class="hpRefineLink">
	<a onclick="toggleSearchCriteria();false" id="hpRefineLink">More Options</a>
</div> -->

</form>
</div>
<!-- FROMS -->

{literal}				
<script language="JavaScript">
		function toggleSearchCriteria()
		{
			var show = (document.getElementById('refineOptions').style.display == 'none')
			showSearchCriteria(show)
		}
		
		function showSearchCriteria(show)
		{
			if (show)
			{
				document.getElementById('ctl00_SearchMoreCriteria1_hidCriteriaVisible').value = '1';
				document.getElementById('refineOptions').style.display = 'block';
				document.getElementById('hpRefineLink').innerHTML = 'Hide Options';
			}
			else
			{
				document.getElementById('ctl00_SearchMoreCriteria1_hidCriteriaVisible').value = '0';
				document.getElementById('refineOptions').style.display = 'none';
				document.getElementById('hpRefineLink').innerHTML = 'More Options';
				
				//Reset fields to defaults.
				
					resetField('ctl00_SearchMoreCriteria1_ddlMinPrice');
					resetField('ctl00_SearchMoreCriteria1_ddlMaxPrice');
					resetField('ctl00_SearchMoreCriteria1_ddlBedrooms');
					resetField('ctl00_SearchMoreCriteria1_ddlBathrooms');
					resetField('ctl00_SearchMoreCriteria1_ddlCarSpaces');
					resetField('ctl00_SearchMoreCriteria1_ddlPropType');
				
			}
		}
		
		//Reset fields to defaults.
		function resetField(id)
		{
			var obj = document.getElementById(id);
			if (obj != null)
			{
				obj.options[0].selected = true;
			}
		}
		
		 function validate_search(oSrc, args) {
			var search = document.getElementById('ctl00_SearchMoreCriteria1_searchToBuy');
			if (search.value == '') {
				var msg = document.getElementById('ctl00_SearchMoreCriteria1_uiErrorText');
				if (typeof msg != 'undefined')
					msg.style.display = 'none';
				args.IsValid = false;
				return;
			}
			args.IsValid = true;
        }
        
        function CommercialStatusChange(src)
        {
			var status = document.getElementsByName(src);
			
			if (status[0].checked)
			{
				buyClass = "showElement";
				rentClass = "hideElement";
			}
			else
			{
				rentClass = "showElement";
				buyClass = "hideElement";
			}
			var ctrl = document.getElementById('ctl00_SearchMoreCriteria1_BuyCommercialMinPrice');
			ctrl.className = buyClass;
			ctrl = document.getElementById('ctl00_SearchMoreCriteria1_BuyCommercialMaxPrice');
			ctrl.className = buyClass;

			ctrl = document.getElementById('ctl00_SearchMoreCriteria1_RentCommercialMinPrice');
			ctrl.className = rentClass;
			ctrl = document.getElementById('ctl00_SearchMoreCriteria1_RentCommercialMaxPrice');
			ctrl.className = rentClass;
        }

</script>
<script language="JavaScript">
		var criteriaVisible = '0';
		document.getElementById('ctl00_SearchMoreCriteria1_hidCriteriaVisible').value = criteriaVisible;
		if (criteriaVisible == '1')
		{
			showSearchCriteria(true);
		}
</script>
	{/literal}									
				</div>
				<!-- End Keyword Search Functionality -->	
				
				
					
				<div class="clear"></div>


	</form>
	{/if}
<!-- FORMS -->

				</h2>
				{include file="posts-loop_category.tpl"}
			</div><!-- #job-listings -->
		</div><!-- #content -->

{include file="footer.tpl"}